import request from '@/utils/request.js'
// 获取权限点
export function sysPermission() {
  return request({
    url: '/sys/permission'
  })
}
// 删除权限点
export function delSysPermission(id) {
  return request({
    url: `/sys/permission/${id}`,
    method: 'delete'
  })
}
// 添加
export function addSysPermission(data) {
  return request({
    url: '/sys/permission',
    method: 'post',
    data
  })
}
// 编辑
export function putSysPermission(data) {
  return request({
    url: '/sys/permission/' + data.id,
    method: 'put',
    data
  })
}
